package com.aidex.quartz.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("sys_job_log")
@ApiModel("定时任务调度日志")
public class SysJobLog extends BaseEntity {

    @ApiModelProperty("任务名称")
    @Excel(name = "任务名称")
    private String jobName;

    @ApiModelProperty("任务组名")
    @Excel(name = "任务组名")
    private String jobGroup;

    @ApiModelProperty("调用目标字符串")
    @Excel(name = "调用目标字符串")
    private String invokeTarget;

    @ApiModelProperty("日志信息")
    @Excel(name = "日志信息")
    private String jobMessage;

    @ApiModelProperty("执行状态")
    @Excel(name = "执行状态", readConverterExp = "0=正常,1=失败")
    private String status;

    @ApiModelProperty("异常信息")
    @Excel(name = "异常信息")
    private String exceptionInfo;

    @ApiModelProperty("开始时间")
    private Date startTime;

    @ApiModelProperty("停止时间")
    private Date stopTime;
}
